package com.yuyou.weixin.bean;

import java.io.Serializable;
import java.util.Collections;
import java.util.List;

public class PageInfo<T> implements Serializable {

    private static final long serialVersionUID = 587754556498974978L;


    /**
     * 当前页
     */
    private int pageIndex;

    /**
     * 每页最大
     */
    private int pageSize;
    
    /**
     * list
     */
    private List<T> list = Collections.emptyList();
    
    /**
     * 总数
     */
    private int count;
    
    /**
     * 共几页
     */
    private int totalPage;
    
    /**
     * 额外参数
     */
    private Object  extra;

	public Object getExtra() {
		return extra;
	}

	public void setExtra(Object extra) {
		this.extra = extra;
	}

	public int getPageIndex() {
		return pageIndex;
	}

	public void setPageIndex(int pageIndex) {
		this.pageIndex = pageIndex;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public List<T> getList() {
		return list;
	}

	public void setList(List<T> list) {
		this.list = list;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	
    
}
